/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-03-18
 * Time: 9:28
 */

class PetDog{
    public String name;//名字
    public String color;//颜色
    public void eat(){
        System.out.println("吃饭!");
    }

}
public class Test {
    public static void main(String[] args) {
        PetDog petDog = new PetDog();  //washMachine是实例化对象，存了对象的地址。
        petDog.color = "蓝色";
        System.out.println(petDog.color);
    }

}
